package com.yjk.example;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p> </p>
 *
 * <pre> Created: 2018/11/15 15:40 </pre>
 *
 * @author hlu
 * @version 1.0
 * @since JDK 1.7
 */
@RestController
@RequestMapping("/rest")
public class HelloRestController {

    @RequestMapping("/hello2")
    public String hello2(){
        return "hello2,哈哈";
    }

    @GetMapping("/hello3")
    public String hello3(){
        return "hello3";
    }

    @GetMapping("/hello4")
    public String hello4(){
        return "hello4";
    }
}
